<script setup>
const props = defineProps({
    scroll: {
        type: Boolean,
        default: true,
    },
});
</script>

<template>
    <div class="scrollbox-container">
        <el-scrollbar class="sc" v-if="scroll">
            <slot></slot>
        </el-scrollbar>
        <slot v-else></slot>
    </div>
</template>

<style scoped lang="scss">
.scrollbox-container {
    height: 100%;
    width: 100%;
    .content {
        height: 100%;
    }
    .sc.el-scrollbar:deep {
        height: 530px;
        .el-scrollbar__wrap {
            overflow-x: hidden;
        }
    }
}
</style>

